package studentprogressreport;

/**
 * Class represents course entity.
 * <p>
 * The class Course provides constructor and two methods for getting course's
 * name and durations.
 * 
 * @author Nadejda Makarkina
 */

public class Course {
	private String courseName;
	private Integer courseDuration;

	/**
	 * Initializes a newly created <code>Course</code> object.
	 * 
	 * @param courseName
	 *            is a name of a course
	 * @param courseDuration
	 *            is the course's duration
	 */
	public Course(String courseName, Integer courseDuration) {
		this.courseName = courseName;
		this.courseDuration = courseDuration;
	}

	/**
	 * Return name of the course object.
	 * 
	 * @return name of the course
	 */
	public String getName() {
		return courseName;
	}

	/**
	 * Return duration of the course object.
	 * 
	 * @return duration of the course
	 */
	public Integer getDuration() {
		return courseDuration;
	}
}
